package com.md.deom;

import java.util.Scanner;

public class Demo3 {
	public static void main(String[] args) {
		int longth; //长度
		int width; //宽度
		int radius; //半径
		
		Scanner scan = new Scanner(System.in);
		System.out.println("请输入长度");
		longth = scan.nextInt();
		System.out.println("请输入宽度");
		width = scan.nextInt();
		System.out.println("请输入半径");
		radius = scan.nextInt();
		
		System.out.println("长方形的长度为："+longth);
		System.out.println("长方形的宽度为："+width);
		System.out.println("圆的半径为："+radius);
		System.out.println("长方形的面积为："+longth*width);
		System.out.println("圆的面积为："+radius*radius*3.14);
		
	}
	
}
